<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateJoinsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('joins', function (Blueprint $table) {
            $table->increments('id');
            $table->char('name', 6)->comment('姓名');
            $table->char('mobile', 11)->comment('电话号码');
            $table->boolean('gender')->comment('性别');
            $table->char('title', 60)->comment('活动标题');
            $table->date('apply_time')->comment('申请时间');
            $table->integer('nid')->comment('成员names表主键ID');
            $table->integer('cid')->comment('所参加活动events表主键ID');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('joins');
    }
}
